package com.wframe.project.jnd.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2017/5/24.
 */
public class UiFloorPanel implements Serializable {

    public enum TitleMode {
        LEFT_AND_MORE("标题居左更多居右"),
        CENTER_NO_MORE("标题居中隐藏更多"),
        LEFT_NO_MORE("标题居左隐藏更多"),
        NO_TITLE_MORE("隐藏标题隐藏更多");

        TitleMode (String display){
            this.display = display;
        }

        private String display;

        public String getDisplay() {
            return display;
        }

        public void setDisplay(String display) {
            this.display = display;
        }
    }

    public enum Layout {
        WE_LEFT_ONE_RIGHT_TWO("[微商城]左一右二布局"),
        WE_LEFT_ONE_RIGHT_FOUR("[微商城]左一右四布局"),
        WE_LEFT_TWO_RIGHT_ONE("[微商城]左二右一布局"),
        WE_TWO_COLUMN("[微商城]两列布局"),
        WE_FOUR_COLUMN("[微商城]四列布局");

        Layout(String display) {
            this.display = display;
        }

        private String display;

        public String getDisplay() {
            return display;
        }

        public void setDisplay(String display) {
            this.display = display;
        }

    }

    public enum Type {
        ITEM("链图模式"),
        PRODUCT("商品列表");
        Type (String display){
            this.display = display;
        }

        private String display;

        public String getDisplay() {
            return display;
        }

        public void setDisplay(String display) {
            this.display = display;
        }
    }

    public enum State {
        AVAILABLE,
        UNAVAILABLE,
        REMOVED
    }

    private Long id;
    private Long ui_floor_id;
    private Date create_time;
    private String title;
    private TitleMode title_mode;
    private String image;
    private String color;
    private String link;
    private Layout layout;
    private Integer sort_value;
    private Type type;
    private State state;
    private String remark;

    private List<UiFloorItem> items;
    private List<UiFloorProduct> products;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUi_floor_id() {
        return ui_floor_id;
    }

    public void setUi_floor_id(Long ui_floor_id) {
        this.ui_floor_id = ui_floor_id;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public TitleMode getTitle_mode() {
        return title_mode;
    }

    public void setTitle_mode(TitleMode title_mode) {
        this.title_mode = title_mode;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public Layout getLayout() {
        return layout;
    }

    public void setLayout(Layout layout) {
        this.layout = layout;
    }

    public Integer getSort_value() {
        return sort_value;
    }

    public void setSort_value(Integer sort_value) {
        this.sort_value = sort_value;
    }

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public State getState() {
        return state;
    }

    public void setState(State state) {
        this.state = state;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public List<UiFloorItem> getItems() {
        return items;
    }

    public void setItems(List<UiFloorItem> items) {
        this.items = items;
    }

    public List<UiFloorProduct> getProducts() {
        return products;
    }

    public void setProducts(List<UiFloorProduct> products) {
        this.products = products;
    }
}
